package com.lee.study.nettty.server;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

import com.lee.study.nettty.server.config.SpringConfig;

/**
 * Hello world!
 *
 */
public class App {
	
	private static final Logger LOG = LoggerFactory.getLogger(App.class);
	
    public static void main( String[] args ){
    	LOG.debug("Starting application context");
    	AbstractApplicationContext ctx = 
    			new AnnotationConfigApplicationContext(SpringConfig.class);
    	ctx.registerShutdownHook();
    }
}
